<extend name="Public:layout"/>
<block name="css">

</block>
<block name="js">
    <script src="__RESOURCE__/js/bootstrap/js/bootstrap.min.js"></script>
    <script src="__RESOURCE__/js/common.js"></script>
    <script src="__RESOURCE__/js/formValidator/formValidator-4.1.3.js"></script>
    <script src="__RESOURCE__/js/layui/layui.all.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            //日期时间范围选择
            layui.use('laydate', function(){
                var laydate = layui.laydate;
                laydate.render({
                    elem: '#end_time'
                    ,type: 'datetime'
                    ,range: '~' //或 range: '~' 来自定义分割字符
                });
            });
        });
    </script>

</block>
<block name="content">

    <div class="page_title">
        <h2 class="fl">{$title}</h2>
    </div>
    <form method="post"  autocomplete="off"  enctype="multipart/form-data"  id="form1" action="{:U(add)}">
        <ul class="ulColumn2">
            <li>
                <span class="item_name" style="width:120px;">代理人手机号：</span>
                <input id="login_name" name="login_name" type="text" class="textbox textbox_225" placeholder="代理人手机号" value="" maxlength="11" datatype="*1-255" nullmsg="代理人手机号" errormsg="至少一个字符" />
                <span class="Validform_checktip" ></span>
            </li>
            <li>
                <span class="item_name" style="width:120px;">邀请码前缀：</span>
                <input id="prefix" name="prefix" type="text" class="textbox textbox_225" placeholder="邀请码前缀（4位之内，数字、字母都可）" value="" datatype="*1-255" nullmsg="邀请码前缀" errormsg="至少一个字符" />
                <span class="Validform_checktip" ></span>
            </li>
            <li style="display: none">
                <span class="item_name" style="width:120px;">邀请码位数：</span>
                <input id="code_len" name="code_len" type="text" class="textbox textbox_225" readonly="readonly" placeholder="邀请码位数（默认加前缀20位,最多30位）" value="26"  datatype="*1-255" nullmsg="邀请码位数" errormsg="至少一个字符" />
                <span class="Validform_checktip" ></span>
            </li>
            <li>
                <span class="item_name" style="width:120px;">邀请码数量：</span>
                <input id="code_num" name="code_num" type="text" class="textbox textbox_225" placeholder="邀请码数量（一次最多200个）" value=""  datatype="*1-200" nullmsg="邀请码数量" errormsg="请输入小于200的整数" />
                <span class="Validform_checktip" ></span>
            </li>
            <li>
                <span class="item_name" style="width:120px;">时间范围<span class="check-tips">（激活时间 ~ 到期时间）</span></span>
                <input id="end_time" name="end_time" type="text" class="textbox textbox_225" placeholder="时间范围" value=""  datatype="*1-255" nullmsg="时间范围" errormsg="至少一个字符" />
                <span class="Validform_checktip" ></span>
            </li>
            <li>
                <span class="item_name" style="width:120px;"></span>
                <input type="submit" id="subBtn" class="link_btn" value="更新/保存"/>
            </li>
        </ul>
    </form>

</block>
